package com.funcourse.demo.sms.vcode;

import java.util.Random;
import org.springframework.stereotype.Component;

@Component
public class VerifyCodeGenerator {

    public String generateVerifyCode(String function, String ident) {
        Random random = new Random();
        Integer vCodeLong = 1000 + random.nextInt(9000);
        return vCodeLong.toString();//4位随机数
    }

}
